# coding:utf-8

from app import db

# 类名定义 collection
class User(db.Document):
    # 字段
    username = db.StringField()
    password = db.StringField()
    age = db.IntField()

    def __str__(self):
        return "username:{} - password:{}".format(self.username, self.password)
